$OpenBSD: patch-auto_def,v 1.6 2016/06/15 17:13:36 jturner Exp $
--- auto.def.orig	Wed Jun 15 09:58:56 2016
+++ auto.def	Wed Jun 15 09:59:12 2016
@@ -184,7 +184,7 @@ if {[opt-bool with-th1-hooks]} {
 
 if {[opt-bool static]} {
     # XXX: This will not work on all systems.
-    define-append EXTRA_LDFLAGS -static
+    define-append EXTRA_LDFLAGS ${STATIC}
     msg-result "Trying to link statically"
 } else {
     define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1
